package com.qidian.mes.pojo;

/**

 * ClassName:Flaw
 * Package:com.qidian.mes.pojo
 **/

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.qidian.mes.desensitivity.DesensitivityAnnotation;
import com.qidian.mes.desensitivity.DesensitivityAnnotationQc;
import com.qidian.mes.excel.UserGenderConverterQc;

/**
 * @Author ppc
 * @Conpany study
 * @Description:缺陷
 * @Time 2024/4/5 13:09
 *
 **/
@HeadRowHeight(25)//表头行高
@ContentRowHeight(20)//内容行高
@ColumnWidth(20)//列宽
public class Flaw {
    /**
     * 添加注解 可以实现导出导入功能
     */
    @ExcelProperty(value = {"基本信息","缺陷编号"},index = 0)
    private Long flawId;//缺陷编号
    @ExcelProperty(value = {"基本信息","缺陷描述"},index = 1)
    @DesensitivityAnnotationQc(value = "~",length = 3,prefixNoMaskLength = 1,suffixNoMaskLength = 1)
    private String flawDescription;//缺陷描述
    @ExcelProperty(value = "检测项类型",index = 2)
    @DesensitivityAnnotation
    private String checkItemType;//检测项类型
    @ExcelProperty(value = "缺陷等级",index = 3)
    private String flawLevel;//缺陷等级
    @ExcelProperty(value = "缺陷状态",index = 4,converter = UserGenderConverterQc.class)
    private Integer flawStatus;//缺陷的状态显示

    public Long getFlawId() {
        return flawId;
    }

    public void setFlawId(Long flawId) {
        this.flawId = flawId;
    }

    public String getFlawDescription() {
        return flawDescription;
    }

    public void setFlawDescription(String flawDescription) {
        this.flawDescription = flawDescription;
    }

    public String getCheckItemType() {
        return checkItemType;
    }

    public void setCheckItemType(String checkItemType) {
        this.checkItemType = checkItemType;
    }

    public String getFlawLevel() {
        return flawLevel;
    }

    public void setFlawLevel(String flawLevel) {
        this.flawLevel = flawLevel;
    }

    public Integer getFlawStatus() {
        return flawStatus;
    }

    public void setFlawStatus(Integer flawStatus) {
        this.flawStatus = flawStatus;
    }
}
